import request from '@/utils/request'

// 查询询价单列表
export function listForm(query) {
  return request({
    url: '/inquiry/demand/list',
    method: 'get',
    params: query
  })
}

export function listInquiry(query) {
  return request({
    url: '/inquiry/form/'+query,
    method: 'get',

  })
}
// 查询询价单详细
export function getForm(Supplier) {
  return request({
    url: '/inquiry/form/',
    method: 'post',
    data:Supplier
  })
}

// 新增询价单
export function addForm(data) {
  return request({
    url: '/system/form',
    method: 'post',
    data: data
  })
}
export function addAudit(data){
  return request({
    url:"/inquiry/form/addAudit",
    method:'post',
    data:data
  })
}

// 修改询价单
export function updateForm(data) {
  return request({
    url: '/system/form',
    method: 'put',
    data: data
  })
}

// 删除询价单
export function delForm(inquiryId) {
  return request({
    url: '/system/form/' + inquiryId,
    method: 'delete'
  })
}
